package cn.wqk.rrtf.service;

import cn.wqk.rrtf.pojo.Member;
import cn.wqk.rrtf.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MemberService {

    /**
     * 会员
     * @param member
     * @param user
     * @return
     */
    Integer insertMember(Member member, User user);

    /**
     * 修改会员
     * @param member
     * @return
     */
    Integer updateMember(Member member);

    /**
     * 删除会员
     * @param memberId
     * @return
     */
    Integer deleteMember(Integer memberId);

    /**
     * 查询所有会员
     * @param member
     * @return
     */
    List<Member> selectAllMember(Member member);

    /**
     * 根据条件查询
     * @param member
     * @return
     */
    List<Member> selectMemberByCondition(Member member);

    /**
     * 根据课程编号查询会员
     * @param courseId
     * @return
     */
    List<Member> selectMemberByCourseId(Integer courseId);

    /**
     * 根据群聊编号查询会员
     * @param chatId
     * @return
     */
    List<Member> selectMemberByChatId(Integer chatId);

    /**
     * 根据等级编号查询会员
     * @param gradeId
     * @return
     */
    List<Member> selectMemberByGradeId(Integer gradeId);
}
